package com.cyx.proxy;

public class HouseAgent implements IRent {
    private IRent rent;
    @Override
    public void rentHourse() {
        System.out.println("中介带你看房");
        rent.rentHourse();
        System.out.println("中介收取费用");
    }

    public IRent getRent() {
        return rent;
    }

    public void setRent(IRent rent) {
        this.rent = rent;
    }
}
